package com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.domain.VideoComment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface VideoCommentDao extends BaseMapper<VideoComment> {

    void addVideoComment(VideoComment videoComment);

    /**
     * 查询这条视频有总共有多少条一级评论
     */
    Integer pageCountVideoComments(Map<String, Object> params);

    List<VideoComment> pageListVideoComments(Map<String, Object> params);

    List<VideoComment> batchGetVideoCommentsByRootIds(List<Long> rootIdList);
}
